<style>
.fui-tab-scroll .item a {color:#999}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#333;font-weight: 400;position: relative;font-size:0.8rem}
.fui-tab-scroll .item.on:before {content: ""; height: 2px; width: 40%; background: #4491F1; position: absolute; bottom:0; left: 30%}
.fui-tab-scroll .item.active{color:#4491F1;}
.yuyue-duan {border: 1px solid #ddd;border-radius: 4px;padding:0.2rem;height:auto;width:90px;margin:8px;font-size:0.6rem;text-align:center;}
.weui_cells_radio2 .weui_check:checked + .weui_icon_checked:before {
  color: #4491F1;
}
.red {color: #4491F1;}
.fui-btn-c {
    height: auto;
    background: #f2f2f2;
    margin: 0.6rem 0.3rem;
    padding: 0.6rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
	justify-content:center;
    align-items: center;
	color:#4491F1;
    position: relative;
	border-radius:1rem;
}

.fui-btn-c .icon {
	font-size:1rem;
	padding-right:0.3rem;
	text-align:right;
}

.fui-btn-c .info {
	text-align:left;
    padding-right: 0.2rem;
    font-size: 0.75rem;
}

.fui-btn-c .info p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.weui_cells_radio3 .imglogo-check{
    margin-top:-0.6rem;
	margin-left:1.7rem;
}
</style>
<div ng-if="!pagedata.bodylist || pagedata.bodylist.length==0 || pagedata.isyuyue==0" class="fui-page  fui-page-current page-goods-list">
<div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
			<a class="back"></a>
		</div>
		<div class="fui-header-input">
			<form method="post">
					<div class="searchbar searchbar-active">
					<div class="search-input">
						<i class="icon jinyunicon icon-search" style="font-size: 1.0rem;" ng-click="tool.get_list('jy_edu/store_list/getlist/',true);"></i>
						<input type="search" id="search" placeholder="输入关键字..." ng-model="pagedata.params.keyword">
					</div>
					</div>
			</form>
		</div>
		<div class="fui-header-right" data-nomenu="true">
			<a href="javascript:;" ng-click="tool.get_list('jy_edu/store_list/getlist/',true);">搜索</a>
		</div>
</div>
<div class="fui-content" style="top:1.3rem">
		<div class="weui_cells weui_cells_access">
				<a class="weui_cell" href="javascript:;">
					<div class="weui_cell_bd weui_cell_primary" style="padding:0">
						<span>当前定位/选择地区：{{pagedata.pcd.city || '广州市'}}</span>
					</div>
					<div class="weui_cell_ft" ng-click="toogle(pagedata,'show')">
						选择县区
					</div>
				</a>
				<div class="row margin0" ng-show="pagedata.show">
						<div class="jy-3" ng-repeat="value in pagedata.province[pagedata.pcd.province][pagedata.pcd.city]">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city='+pagedata.pcd.city+'&district='+value,true)">
									<div>{{value}}</div>
									<div class="clear"></div>
							</div>
						</div>
				</div>
			</div>
			<div class="fui-tab-scroll" style="padding-left:0.8rem">
				<div ng-if="pagedata.pluginset.no_city!=1" ng-class="{'item':1,'on':!pagedata.showarea}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.showarea=false">热门地区</a></div>
				<div ng-class="{'item':1,'on':pagedata.showarea}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.showarea=true">其他地区</a></div>
			</div>
			<div ng-if="pagedata.pluginset.no_city!=1" class="weui_cells" style="margin:0 0.8rem;border-radius:0.5rem;padding:0.6rem">
				<div class="row margin0">
					<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=深圳市',true);pagedata.pcd.city='深圳市'">
									<div>深圳市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=上海市',true);pagedata.pcd.city='上海市'">
									<div>上海市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=东莞市',true);pagedata.pcd.city='东莞市'">
									<div>东莞市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=北京市',true);pagedata.pcd.city='北京市'">
									<div>北京市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=南京市',true);pagedata.pcd.city='深圳市'">
									<div>南京市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city=杭州市',true);pagedata.pcd.city='深圳市'">
									<div>杭州市</div>
									<div class="clear"></div>
							</div>
						</div>
				</div>
			</div>
			<div class="fui-tab-scroll" style="padding-left:0.8rem">
				<div ng-class="{'item':1,'on':pagedata.params.type!=1}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.type=0;tool.get_list('jy_edu/store_list/getlist/',true)">附近校区</a></div>
				<div ng-class="{'item':1,'on':pagedata.params.type==1}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.type=1;tool.get_list('jy_edu/store_list/getlist/type=1',true)">常去校区</a></div>
			</div>
			<div class="fui-list-group merchgroup" style="margin:0 0.8rem;border-radius:0.5rem;">
					<div ng-if="!pagedata.lessonid" class="fui-list" ng-repeat="item in pagedata.list">
						<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_edu/store_detail//id='+item.id);">
							<img class="round" ng-src="{{tomedia(item.logo) || '../core/resource/images/nopic.jpg'}}">
						</a>
						<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/store_detail//id='+item.id);">
							<div class="title" style="font-size:0.76rem">{{item.title}}</div>
							<div class="subtitle">
								<i class="icon icon-map" style="color:#4491F1;font-size:0.6rem"></i> <span style="color:#999">{{item.address || '该校区还未填写地址'}}</span>
							</div>
							<div class="subtitle" style="font-size:0.55rem">
								<div class="store-moneylimit">
								  <span>电话 <span style="color:#4491F1">{{item.mobile || '无'}}</span> </span> | 
								  <span> 上课模式<span style="color:#4491F1"> 课时</span></span>
								  <span class="store-distance">上课时间：{{item.worktime.start}}~{{item.worktime.end}}</span>
								</div>
							</div>
						</a>
					</div>
					<div ng-if="pagedata.lessonid" class="fui-list" ng-repeat="item in pagedata.list">
						<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_edu/book//lessonid='+pagedata.lessonid+'&id='+item.id)">
							<img class="round" ng-src="{{tomedia(item.logo) || '../core/resource/images/nopic.jpg'}}">
						</a>
						<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/book//lessonid='+pagedata.lessonid+'&id='+item.id)">
							<div class="title" style="font-size:0.76rem">{{item.title}}</div>
							<div class="subtitle">
								<i class="icon icon-map" style="color:#4491F1;font-size:0.6rem"></i> <span style="color:#999">{{item.address || '该校区还未填写地址'}}</span>
							</div>
							<div class="subtitle" style="font-size:0.55rem">
								<div class="store-moneylimit">
								  <span>电话 <span style="color:#4491F1">{{item.mobile || '无'}}</span> </span> | 
								  <span> 上课模式<span style="color:#4491F1"> 课时</span></span>
								  <span class="store-distance">上课时间：{{item.worktime.start}}~{{item.worktime.end}}</span>
								</div>
							</div>
						</a>
					</div>
					<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty' style="margin-top:0">
						<i class='icon icon-sousuo1'></i><br/>暂时没有任何校区
					</div>
			</div>
</div>
</div>
<div ng-if="pagedata.bodylist.length>0 && pagedata.isyuyue==1" class="fui-page  fui-page-current page-goods-list">
			<div class="fui-tab-scroll" style="padding-left:0.8rem">
				<div class="item on" style="height:2rem;line-height:2rem">选择要上课的学生</div>
			</div>
			<div class="fui-tab-scroll" style="height: 4rem" >
				<div class="xcontainer weui_cells_radio3" style="z-index:0;height: 4rem;padding:0.3rem 0.5rem" >
					<label class="jyui_cell_member" style="width:50px" ng-repeat="item in pagedata.bodylist">
						<div class="userimg">
							<img class="img-circle"  ng-src="{{tomedia(item.headimg) || '../core/resource/images/noavatar.gif'}}" width="50" height="50">
							<div class="imglogo-check" ng-click="pagedata.getclass(item.id);pagedata.post.bodyid=item.id;">
								<input type="radio" class="weui_check" name="radio2">
								<span class="weui_icon_checked"></span>
							</div>
						</div>
						<div>
							<span style="font-size:0.5rem">{{item.name}}</span>
						</div>
					</label>
				</div>
			</div>
			<div class="fui-tab-scroll" style="padding-left:0.8rem">
				<div class="item on" style="height:2rem;line-height:2rem">已报名的班级</div>
			</div>
			<div class="fui-list-group merchgroup" style="margin:0 0.8rem;border-radius:0.5rem;">
					<div class="fui-list" ng-repeat="item in pagedata.list">
						<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_edu/book//isvip=1&id='+item.id+'&bodyid='+pagedata.post.bodyid)">
							<img class="round" ng-src="{{tomedia(item.store.logo) || '../core/resource/images/nopic.jpg'}}">
						</a>
						<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/book//isvip=1&id='+item.id+'&bodyid='+pagedata.post.bodyid)">
							<div class="title" style="font-size:0.76rem">{{item.store.title}}-{{item.title}}</div>
							<div class="subtitle">
								<i class="icon icon-map" style="color:#4491F1;font-size:0.6rem"></i> <span style="color:#999">{{item.store.address || '该校区还未填写地址'}}</span>
							</div>
							<div class="subtitle" style="font-size:0.55rem">
								<div class="store-moneylimit">
								  <span>电话 <span style="color:#4491F1">{{item.store.mobile || '无'}}</span> </span> | 
								  <span> 上课模式<span style="color:#4491F1"> 学期</span></span>
								  <span class="store-distance">上课时间：按学期上课</span>
								</div>
							</div>
						</a>
					</div>	
			</div>
</div>
<div ng-if="pagedata.showarea" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="height:20rem;overflow-y:scroll">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showarea=false"></i>
			<div ng-repeat="(value,data) in pagedata.province">
				<div class="weui_cells_title">{{value}}</div>
				<div class="weui_cells">
					<div class="row margin0">
						<div class="jy-3" ng-repeat="(value,data) in pagedata.province[value]">
								<div class="yuyue-duan" style="width:auto" ng-click="pagedata.showarea=false;tool.get_list('jy_edu/store_list/getlist/province='+pagedata.pcd.province+'&city='+value,true);pagedata.pcd.city=value">
										<div>{{value}}</div>
										<div class="clear"></div>
								</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.params={}
// 百度地图API功能
if(!scope.pagedata.bodylist || scope.pagedata.bodylist.length==0 || scope.pagedata.isyuyue==0){
	window.scope.location(function(re){
		if(!scope.pagedata.pcd.city){
		scope.$evalAsync(function(){
			scope.pagedata.pcd.province = re.addressComponents.province;
			scope.pagedata.pcd.city = re.addressComponents.city;
		});
	}
		re.lat_lng=re.lat_lng?re.lat_lng:{};
		scope.tool.get_list('jy_edu/store_list/getlist/lat='+re.lat_lng.lat+'&lng='+re.lat_lng.lng,true);
	});
}else{
	scope.tool.get_list('jy_edu/store_list/getclass/&bodyid='+scope.pagedata.post.bodyid,true);
	scope.pagedata.getclass=function(bodyid){
		scope.tool.get_list('jy_edu/store_list/getclass/&bodyid='+bodyid,true);
	}
}
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_edu/store_list/getlist/');
}
scope.pagedata.getprovince=function(){
	scope.get('/index/getprovince/',function(res){
		scope.pagedata.province=res.province
		scope.$evalAsync();
	});
}
scope.pagedata.getprovince();
</script>
<div ng-include="sys_html('common/pluginnav',true)"></div>